<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>  
    <title>晓庄bbs——登录页面</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
    <script type=text/javascript>
// 验证输入不为空的脚本代码 
function checkForm(form) {
if(form.username.value == "") {
alert("用户名不能为空!");
 
form.username.focus();
return false;
}
if(form.password.value == "") {
alert("密码不能为空!");
form.password.focus();
return false;
}
return true;
}
</script>
 
  <body>
 <center>
<h1><br><br>欢迎来到晓庄bbs论坛 请登录</h1>  <br><br>

   
     <form action="loginServlet" method="post">
      <table border=0>
  <tr>
     <td>用户名：</td><td><input type="text" id="loginName" name="loginName"></td>
  </tr>
  <tr>
    <td>密码 ：</td><td><input type="password" id="password" name="password"></td>
  </tr>
  <tr>
    <td><input type="submit" value="登录" name="submit1" ></td>
    <td><input type="reset" value="重置" name="reset1"></td>
  </tr>
  </table>
</form>

<table border=0>
<tr>
 <td>
  <form action="getPassword.jsp" method=post >
   <input type="submit" value="取回密码" name="getpass">
  </form>
 </td>
 <td>
  <form action="register.jsp" method=post >
   <input type="submit" value="新用户注册" name="regist">
  </form>
 </td>
 </tr>
</table>
</center>
  </body>
</html>
